perf(linter/no-required-prop-with-default): restructure so lintgen works#20537
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
There was a problem hiding this comment.
Pull request overview
Refactors the Vue rule no-required-prop-with-default so it can be lintgen-friendly and more selective about which AST nodes it runs on, improving runtime efficiency while preserving existing behavior.
Changes:
- Restructured the rule’s
runlogic to dispatch only onCallExpressionand (Vue-only)ExportDefaultDeclaration. - Converted some helper methods to associated functions and switched ancestor lookup to use
NodeIddirectly. - Updated the generated
RuleRunnerimpl to declare concreteNODE_TYPESfor this rule.
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| crates/oxc_linter/src/rules/vue/no_required_prop_with_default.rs | Refactors rule entrypoints to operate on explicit node kinds and use NodeId for ancestor traversal. |
| crates/oxc_linter/src/generated/rule_runner_impls.rs | Narrows this rule’s runner to CallExpression + ExportDefaultDeclaration to match the refactor and improve performance. |
8693ed2 to
3555c33
Compare
Merging this PR will not alter performance
Comparing Footnotes
|
Merge activity
|
3555c33 to
57b2e82
Compare


No description provided.